ee854b8eb62031dae27084c112847b975a185bcd,maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/InstallPluginsMojoTest.java,InstallPluginsMojoTest,testShouldInstallAsJarWhenPropertyIsTrue,#,133

Before Change


    public void testShouldInstallAsJarWhenPropertyIsTrue()
        throws MojoExecutionException, MojoFailureException
    {
        File pluginsDir = performTestInstall( Boolean.TRUE, false, ARTIFACT_ORG_ECLIPSE_CORE_RUNTIME, "eclipse-plugin" );

        File installedFile = locateInstalledFile( pluginsDir, ARTIFACT_ORG_ECLIPSE_CORE_RUNTIME );

        File installedDir = locateInstalledDir( pluginsDir, ARTIFACT_ORG_ECLIPSE_CORE_RUNTIME );

        assertTrue( installedFile + " should exist.", installedFile.exists() );
        assertFalse( installedDir + " should not exist.", installedDir.exists() );

After Change


    public void testShouldInstallAsJarWhenPropertyIsTrue()
        throws MojoExecutionException, MojoFailureException
    {
        performTestInstall( Boolean.TRUE, false, ARTIFACT_ORG_ECLIPSE_CORE_RUNTIME, "eclipse-plugin" );

        assertInstalledFileExists( ARTIFACT_ORG_ECLIPSE_CORE_RUNTIME );
        assertInstalledDirDoesNotExist( ARTIFACT_ORG_ECLIPSE_CORE_RUNTIME );